home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / mx / events / ModuleEvent.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.4 KB  |  51 lines

  1. package mx.events
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.ProgressEvent;
  5.    import mx.core.mx_internal;
  6.    import mx.modules.IModuleInfo;
  7.    
  8.    use namespace mx_internal;
  9.    
  10.    public class ModuleEvent extends ProgressEvent
  11.    {
  12.       mx_internal static const VERSION:String = "3.0.0.0";
  13.       
  14.       public static const ERROR:String = "error";
  15.       
  16.       public static const PROGRESS:String = "progress";
  17.       
  18.       public static const READY:String = "ready";
  19.       
  20.       public static const SETUP:String = "setup";
  21.       
  22.       public static const UNLOAD:String = "unload";
  23.       
  24.       public var errorText:String;
  25.       
  26.       private var _module:IModuleInfo;
  27.       
  28.       public function ModuleEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:uint = 0, param5:uint = 0, param6:String = null, param7:IModuleInfo = null)
  29.       {
  30.          super(param1,param2,param3,param4,param5);
  31.          this.errorText = param6;
  32.          this._module = param7;
  33.       }
  34.       
  35.       public function get module() : IModuleInfo
  36.       {
  37.          if(_module)
  38.          {
  39.             return _module;
  40.          }
  41.          return target as IModuleInfo;
  42.       }
  43.       
  44.       override public function clone() : Event
  45.       {
  46.          return new ModuleEvent(type,bubbles,cancelable,bytesLoaded,bytesTotal,errorText,module);
  47.       }
  48.    }
  49. }
  50.  
  51.